package com.example.springbootvue.Service.Impl;

import com.example.springbootvue.Mapper.Getmapper;
import com.example.springbootvue.Pojo.Student;
import com.example.springbootvue.Service.Getservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GetserviceImpl implements Getservice {
    @Autowired
    private Getmapper getmapper;

    @Override
    public Student get(Integer id) {
        return getmapper.get(id);
    }

    @Override
    public Student[] getAll() {
        return getmapper.getAll();
    }

    @Override
    public String Insert(Student student) {
        return getmapper.Insert(student);
    }

    @Override
    public Student getUserById(Integer id) {
        return getmapper.getUserById(id);
    }
}
